﻿#include <QDate>

#include "detail.h"
#include "ui_detail.h"
#include "common.h"

Detail::Detail(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Detail)
{
    ui->setupUi(this);

    QDate date = QDate::currentDate();
    ui->comboBox->setCurrentIndex(date.dayOfWeek()-1);

}

Detail::~Detail()
{
    delete ui;
}

void Detail::closeEvent(QCloseEvent *)
{
    this->deleteLater();
}


void Detail::on_SavePushButton_clicked()
{
    this->close();
}
